//
//  UIImage+Loader.h
//  ImageLoader
//
//  Created by Le Ngoc Thanh on 8/23/13.
//  Copyright (c) 2013 Le Ngoc Thanh. All rights reserved.
//

#import <UIKit/UIKit.h>
typedef NS_ENUM(NSInteger, TYPELOAD){
    TYPELOAD_LOWPRIORITY,       // use for load image prepair for list not display on screen now (many image)
    TYPELOAD_HIGHTPRIORITY      // use for load image need now at this time, faster
};
@interface UIImage (Loader)
+ (UIImage *)loadImageUrl:(NSString *)onlUrl typeLoader:(TYPELOAD)type isOverride:(BOOL)override; // load image with type

// load image with type and want receiver notification
+ (UIImage *)loadImageUrl:(NSString *)onlUrl local:(NSString *)local typeLoader:(TYPELOAD)type receiverObject:(NSObject *)object receiverNotiMethod:(SEL)method removeOldRegistNotification:(NSString *)name isOverride:(BOOL)override;

+ (UIImage *)loadImageUrl:(NSString *)onlUrl local:(NSString *)local typeLoader:(TYPELOAD)type receiverObject:(NSObject *)object receiverNotiMethod:(SEL)method removeAllOldRegistNotification:(BOOL)remove isOverride:(BOOL)override;

// get image from local
+ (UIImage *)imageLocalFromOnlineUrl:(NSString *)url;
@end
